package com.qqtech.qquan.circle.model;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.qqtech.core.common.util.StringUtil;
import com.qqtech.qquan.circle.enums.CircleConst;

@SuppressWarnings("serial")
public class CircleInfoVo extends CircleInfo{
	/**城市名称**/
	private java.lang.String cityName;
	/** 名称 */
	private java.lang.String name;
    /** 图片（单） */
	private java.lang.String logo;
	/** 图片（单） */
	private java.lang.String fullLogo;
    /** 标签名称【如：妹子多、90后,多个以;号隔开】 */
	private java.lang.String tagName;
	/**城市id**/
	private java.lang.Integer cityId;
	
	public java.lang.String getName() {
		return name;
	}

	public void setName(java.lang.String name) {
		this.name = name;
	}

	/**
	 * 圈子LOGO全URL example: http://192.168.1.xxx:8080/circle/1.png
	 * 
	 * @return
	 */
	public java.lang.String getLogo() {
		if(StringUtil.isBlank(this.logo)){
			return "source://image/common/userLogin.png";
		}else if(this.logo.indexOf("source://")>-1){
			return this.logo;
		} else{
			return super.getImgHandleDomain()+""+this.logo+""+CircleConst.LOGO_POSTFIX;
		}
	}

	public java.lang.String getFullLogo() {
		if(StringUtil.isBlank(this.fullLogo)){
			return "source://image/common/userLogin.png";
		}else if(this.fullLogo.indexOf("source://")>-1){
			return this.fullLogo;
		} else{
			return super.getImgHandleDomain()+""+this.fullLogo+""+CircleConst.LOGO_POSTFIX;
		}
	}
	
	public void setFullLogo(java.lang.String fullLogo) {
		this.fullLogo = fullLogo;
	}

	public void setLogo(java.lang.String logo) {
		this.logo = logo;
	}


	public java.lang.String getTagName() {
		return tagName;
	}


	public void setTagName(java.lang.String tagName) {
		this.tagName = tagName;
	}


	public java.lang.Integer getCityId() {
		return cityId;
	}


	public void setCityId(java.lang.Integer cityId) {
		this.cityId = cityId;
	}

	public java.lang.String getCityName() {
		return cityName;
	}

	public void setCityName(java.lang.String cityName) {
		this.cityName = cityName;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}
}